import request from '@/utils/request'

// 查询K8s用户权限列表
export function listUser_binding(query) {
  return request({
    url: '/kubernetes/user_binding/list',
    method: 'get',
    params: query
  })
}

// 查询K8s用户权限详细
export function getUser_binding(id) {
  return request({
    url: '/kubernetes/user_binding/' + id,
    method: 'get'
  })
}

// 新增K8s用户权限
export function addUser_binding(data) {
  return request({
    url: '/kubernetes/user_binding',
    method: 'post',
    data: data
  })
}

// 修改K8s用户权限
export function updateUser_binding(data) {
  return request({
    url: '/kubernetes/user_binding',
    method: 'put',
    data: data
  })
}

// 删除K8s用户权限
export function delUser_binding(id) {
  return request({
    url: '/kubernetes/user_binding/' + id,
    method: 'delete'
  })
}
